From 178897b9f259c07bd8b64ce3bc0737e1c070c821 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 9 Mar 2009 09:19:10 +0000 Subject: [PATCH] pygrub: Enable domU boot without xen specific arg This patch makes domUs bring up without xen specific args to guest kernels. A domU should be bootable without args parameter because tools/examples/xmexample1 doesn't have one. Signed-off-by: INAKOSHI Hiroya --- tools/pygrub/src/pygrub | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/pygrub/src/pygrub b/tools/pygrub/src/pygrub index e4482afeb5..0bd4578b9e 100644 --- a/tools/pygrub/src/pygrub +++ b/tools/pygrub/src/pygrub @@ -605,7 +605,7 @@ if __name__ == "__main__": isconfig = False # what was passed in - incfg = { "kernel": None, "ramdisk": None, "args": None } + incfg = { "kernel": None, "ramdisk": None, "args": "" } # what grub or sniffing chose chosencfg = { "kernel": None, "ramdisk": None, "args": None } # what to boot @@ -641,7 +641,7 @@ if __name__ == "__main__": # debug if isconfig: - chosencfg = run_grub(file, entry) + chosencfg = run_grub(file, entry, fs, incfg["args"]) print " kernel: %s" % chosencfg["kernel"] if img.initrd: print " initrd: %s" % chosencfg["ramdisk"] -- 2.30.2